{% extends 'register/base.html' %}
{% load i18n %}
{% block title %}<title>:: duetopia :: {% trans 'data source' %} - {% trans 'add' %}</title>{% endblock %}
{% block tools %}
<a href="{{ baseurl }}dataset/">{% trans "data sets" %}</a>
{% endblock %}
{% block content %}
<div class="addform">
<h2>{% trans 'add' %} {% trans 'data source' %}</h2>
<form method="post">
<input type="hidden" name="dataset_id" value="{{ dataset.id }}"/>

<table>
<tr><th><label for="id_uri">Uri:</label></th><td><input type="text" name="uri" id="id_uri" /></td></tr>
<tr><th><label for="id_format">Format:</label></th><td><select name="format" id="id_format">
{% for f in formats %}
<option value="{{ f.id }}">{{ f.name }} ({{ f.mimetype }})</option> 
{% endfor %}
</select></td></tr>
<tr><td colspan=2 align="right">
	<input type="submit" name="add" value="{% trans 'add' %}" />
</td></tr>
<tr><td colspan=2 align="right">
<br/>
<a href="{{ baseurl }}dataformat/add">{% trans 'add new format' %}</a>
</td></tr>

</table>
</form>
</div>
{% endblock %}
